﻿namespace SanalMagaza.UI.Controllers
{
    using System.Web.Mvc;
    using SanalMagaza.Model.ViewModel;

    public class HomeController : BaseController
    {
        [HttpGet]
        public ActionResult Index()
        {
            ViewBag.Title = "Anasayfa";
            return View(new HomeVm
                            {
                                ShowCaseProductList = Repository.GetAllProductByShowCase(),
                                Products = Repository.GetAllProduct(new ProductFilter())
                            });
        }

    }
}
